<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sr">
<head>
	<title><?php echo $this->CFG["ime_sajta"]; ?></title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta http-equiv="content-style-type" content="text/css" />
	<meta http-equiv="description" content="<?= $this->CFG["kratak_opis_sajta"]; ?>" />
	<meta http-equiv="keywords" content="<?= $this->CFG["kljucne_reci"]; ?>" />
	
	<link rel="shortcut icon" href="/image/gramata.ico" />
	<style type="text/css">
		body{margin:0;padding:0 20px;text-align:center;background:#c71d22;font:12px Arial}
		table{margin:10px auto;border-collapse:collapse;padding:0}
		td{padding:0;margin:0;vertical-align:middle;text-align:center}
		#cd-cell{background:#fff;width:70px;border-radius:0 40px 40px 0;font-size:40px}
		#cd-val{text-decoration:none;color:#000}
	</style>
	<script type="text/javascript" src="/javascript/jquery-1.6.1.min.js"></script>
</head>

<body>
<table>
	<tr>
		<td><a href="/index" class="logo"><img src="/image/logo.png" alt="<?php echo $this->CFG["ime_sajta"]; ?>" /></a></td>
		<td id="cd-cell"><a href="/index" id="cd-val">10</a></td>
	</tr>
</table>
<a href="/index"><img src="<?= $announce ?>?cb=<?= time() ?>" alt="Najava" /></a>
<script type="text/javascript">
$(function(){
	setTimeout(updateCountDown, 1000);
})
function updateCountDown(){
	var cd = $("#cd-val");
	var num = parseInt(cd.html());
	if(num>0){
		cd.html(num-1);
		setTimeout(updateCountDown, 1000);
	}else{
		location.href = cd.attr("href");
	}
}
</script>
</body>
</html>